package com.naiterui.ehp.bs.im.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.naiterui.ehp.bp.bo.doctor.RecomUserInfoBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;

/**
 * @author 高亮亮
 */
@FeignClient(name = "ad", url = "${ehp.domain.ad}", configuration = FeignConfiguration.class)
public interface DoctorFeginClient {

    /**
     * @param doctorId
     * @param patientId
     *
     * @return
     */
    @PostMapping("/inner/userinfo/recom")
    RecomUserInfoBO getUserInfoForRecom(@RequestParam Long doctorId, @RequestParam Long patientId);

    /**
     * 修改会话状态
     *
     * @param sessionId
     * @param sessionStatus
     */
    @PostMapping("/inner/consult/updateSessionStatus")
    void updateSessionStatus(@RequestParam String sessionId, @RequestParam Integer sessionStatus);
}
